package com.zjitc.service.Impl;

import com.zjitc.dao.UserDao;
import com.zjitc.daomain.User;
import com.zjitc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao dao;
    public void save() {
        dao.save();
        System.out.println("UserService save");
    }
    public User select(int id) {
        return dao.select(id);
    }
}
